package com.quanyan.user.model.vo.response;

import com.quanyan.user.model.db.TbAppBanner;

import java.io.Serializable;


/**
 * Created by slong.guo on 2016/12/13.
 */
public class RespAppBanner implements Serializable {
    private static final long serialVersionUID = 3024505164708703964L;

    private Integer id;

    //banner图片地址
    private String imgurl = "";

    //跳转类型  0：跳转H5页面   1：跳转native页面
    private String pagetype = "";
    //0：不隐藏导航栏   1：隐藏导航栏
    private String hide_nav = "";
    //图片点击链接地址
    private String pageurl = "";

    //banner标题
    private String title = "";

    //banner开始展示时间
    private String starttime = "";

    //banner展示结束时间
    private String endtime = "";

    private Byte sportType;
    private Byte competition;


    public RespAppBanner(TbAppBanner tbAppBanner) {
        this.id = tbAppBanner.getId();
        this.imgurl = tbAppBanner.getImgurl();
        this.pagetype = "" + tbAppBanner.getPagetype();
        this.hide_nav = tbAppBanner.getHideNav() ? "1" : "0";
        this.pageurl = tbAppBanner.getPageurl();
        this.title = tbAppBanner.getTitle();
        this.starttime = "" + tbAppBanner.getStarttime();
        this.endtime = "" + tbAppBanner.getEndtime();
        this.sportType = tbAppBanner.getSportType();
        this.competition = tbAppBanner.getCompetition();
    }

    public RespAppBanner(){

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getPagetype() {
        return pagetype;
    }

    public void setPagetype(String pagetype) {
        this.pagetype = pagetype;
    }

    public String getHide_nav() {
        return hide_nav;
    }

    public void setHide_nav(String hide_nav) {
        this.hide_nav = hide_nav;
    }

    public String getPageurl() {
        return pageurl;
    }

    public void setPageurl(String pageurl) {
        this.pageurl = pageurl;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Byte getSportType() {
        return sportType;
    }

    public void setSportType(Byte sportType) {
        this.sportType = sportType;
    }

    public Byte getCompetition() {
        return competition;
    }

    public void setCompetition(Byte competition) {
        this.competition = competition;
    }
}
